Skip to content

Add token id to audit log#932

Open
frenchy64 wants to merge 10 commits intoclojars:mainfrom
frenchy64:token-id-audit-log
Open

Add token id to audit log#932
frenchy64 wants to merge 10 commits intoclojars:mainfrom
frenchy64:token-id-audit-log

Conversation

@frenchy64
Copy link
Copy Markdown
Contributor

@frenchy64 frenchy64 commented Apr 7, 2026

Related #929

Adds token id to audit log and several other places for discoverability.

SCREENSHOT 1: Display at token creation time

screenshot1

SCREENSHOT 2: Add column to "Existing Deploy Tokens"

screenshot2

SCREENSHOT 3: Add column to "Audit log" (not tested via UI)

screenshot3

@frenchy64 frenchy64 changed the title Token id audit log Add token id to audit log Apr 7, 2026
Copy link
Copy Markdown
Member

@tobias tobias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @frenchy64! I left a couple of suggestions, but am happy to discuss.

#'add-hash-to-deploy-tokens-table
#'add-group-verifications-table
#'add-audit-table
#'add-token-id-to-audit-table
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this to the end of the vector? We keep the migrations in the order they were added.

[:div.new-token
[:pre token]])))
[:pre token]]
[:p "Token ID:"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to show the id here, since I think it would make users think they need to copy it as well. But it would be good to have a way to go from a token value to an id. Maybe instead we add another column to the token table below to show the last four digits of the token? That would require another column, as we don't store the token value, just the bcrypt and sha256 hashes of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants